package OOP;

public class Number {
    private int num1;
    private int num2;
    Number(){
        num1=0;
        num2=2;
    }
    Number(int a,int b){
        this.num1=a;
        this.num2=b;
    }
    public int add(){
        return num1+num2;
    }
    public int sub(){
        return num1-num2;
    }
    public int multi(){
        return num1*num2;
    }
    public int div(){
        return num1/num2;
    }

    public static void main(String[]arg){
        Number number=new Number(6,2);
        System.out.println(number.add());
        System.out.println(number.sub());
        System.out.println(number.multi());
        System.out.println(number.div());
    }

}
